//
//  ModifyValidityViewController.m
//  fitnessmanage
//
//  Created by 众拳科技 on 2017/11/1.
//  Copyright © 2017年 zongquankeji. All rights reserved.
//

#import "ModifyValidityViewController.h"
#import "ModifyValidityView.h"

@interface ModifyValidityViewController ()

@property(nonatomic,weak)ModifyValidityView *modifyValidView;

@end

@implementation ModifyValidityViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    self.title = @"修改会员卡有效期限";
    
    [self createSubView];
    
    UIBarButtonItem *rightButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"确定" style:UIBarButtonItemStylePlain target:self action:@selector(rightBtnClick)];
    [rightButtonItem setTitleTextAttributes:@{NSForegroundColorAttributeName:CSBlackColor,NSFontAttributeName:MidFont} forState:UIControlStateNormal];
    [rightButtonItem setTitleTextAttributes:@{NSForegroundColorAttributeName:CSBlackColor,NSFontAttributeName:MidFont} forState:UIControlStateHighlighted];
    
    self.navigationItem.rightBarButtonItem = rightButtonItem;
}

-(void)createSubView{
    
    ModifyValidityView *modifyValidView = [[ModifyValidityView alloc] initWithValid:YES];
    
    [self.view addSubview:modifyValidView];
    
    self.modifyValidView = modifyValidView;
    
    [modifyValidView mas_remakeConstraints:^(MASConstraintMaker *make) {
       
        make.edges.mas_equalTo(self.view);
    }];
}


#pragma mark 右侧按钮点击
-(void)rightBtnClick{
    
    
}
@end
